package com.loop.practice.p1;

/**
 * 父类： Person
 * 具有的可提供的属性：name， age
 */
public class Person {
    private String name;

    public Person() {
        System.out.println("Person类的无参构造方法");
    }

    public Person(String name) {
        this();
        this.name = name;
        System.out.println("Person类的带参构造方法");
    }

    private Integer age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }


}
